home *** CD-ROM | disk | FTP | other *** search
- '*****************************************************************************
- '
- ' BarMenu2.Bas
- '
- '*****************************************************************************
-
- 'Copyright (c) 1988 Marcel Madonna
-
- 'BarMenu2.BAS shows the use of a simple MS WORD-like bar menu
- ' with QBWARE.
- '*****************************************************************************
-
-
- OPTION BASE 1
-
-
-
- Snow% = 1 'Assume you will see no flicker
- 'Change this value to 0 if the screen
- 'flickers
-
-
- RESTORE BarMenu2.Txt 'Menu items
-
- READ Count%
- REDIM MenuText$(Count%)
- x% = 1
- READ MenuText$(1)
- WHILE MenuText$(x%) <> "EOM" AND x% <= Count%
- x% = x% + 1
- READ MenuText$(x%)
- WEND
- MenuText$(x%) = ""
-
- Header$ = "MAIN MENU:"
- Tr% = 1: Fg% = 15: Bg% = 1
- CALL BarMenu2(MenuText$(), Header$, Tr%, Fg%, Bg%, Snow%, Answer%)
-
- ON Answer% GOSUB Item1, Item2, Item3, Item4, Item5, Item6, Item7, Item8, Item9, Item10, Item11, Item12, Item13, Item14, Item15, Item16, Item17, Item18, Item19
-
-
-
- CLS
- PRINT "You have exited without making a selection"
- END
-
- Item1:
- Item2:
- Item3:
- Item4:
- Item5:
- Item6:
- Item7:
- Item8:
- Item9:
- Item10:
- Item11:
- Item12:
- Item13:
- Item14:
- Item15:
- Item16:
- Item17:
- Item18:
- Item19:
-
- CLS
- PRINT "You have selected item" + STR$(Answer%)
- END
-
-
-
- ' These are the menu choices.
-
- BarMenu2.Txt:
- DATA 20
- DATA "AItem"
- DATA "BItem"
- DATA "CItem"
- DATA "DItem"
- DATA "EItem"
- DATA "FItem"
- DATA "GItem"
- DATA "HItem"
- DATA "IItem"
- DATA "JItem"
- DATA "KItem"
- DATA "LItem"
- DATA "MItem"
- DATA "NItem"
- DATA "OItem"
- DATA "PItem"
- DATA "QItem"
- DATA "RItem"
- DATA "SItem"
- DATA "EOM"
-
- END
-
-
-